package screens 
{
	import starling.display.Sprite;
	import starling.events.Event;
	
	/**
	 * The in game screen
	 * @author Epixcs
	 */
	
	public class InGame extends Sprite
	{
		/**
		 * The in game screen ctor
		 */
		public function InGame() 
		{
			// super it
			super();
			
			// listen for stage adding
			this.addEventListener( Event.ADDED_TO_STAGE, this._onAddedToStage );
		}
		
		/**
		 * Dispose temporarily the ingame screen
		 */
		public function disposeTemporarily():void 
		{
			this.visible = false;
		}
		
		/**
		 * Initialize the ingame screen
		 */
		public function initialize():void 
		{
			this.visible = true;
		}
		
		/*************************************************************************/
		
		// Called when this is added to stage
		private function _onAddedToStage( e:Event ):void 
		{
			// remove event listener
			this.removeEventListener( Event.ADDED_TO_STAGE, this._onAddedToStage );
			
		}
		
	}

}